/ BBS in a Box 15
/ BBS in a box XV-1.iso / Files / System 7 / G-L / LOBE 1.0.sit / LOBE.src / InitToPrefs.c ![]() | < prev | next > |
MacBinary | 1994-12-13 | 1.4 KB | [TEXT/MPS ] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Tue Dec 13 20:12:57 1994, modified Tue Dec 13 20:12:57 1994, creator 'MPS ', type ASCII, 677 bytes "InitToPrefs.c" magic text fragment for file(1) cmd, 1st line "#include "common.h"", 2nd line "", 3rd line "// The new lock state is held in a temp variable, in case new and old", 4th line "// happen to be the same pointer. Otherwise, the old->Locked = -1 would", 5th line "// trash the new value.", at 0x325 428 bytes resource magic text fragment for file(1) cmd, 1st line "#include "common.h"", 2nd line "", 3rd line "// The new lock state is held in a temp variable, in case new and old", 4th line "// happen to be the same pointer. Otherwise, the old->Locked = -1 would", 5th line "// trash the new value." | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MPS ] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 49 6e 69 74 54 6f | 50 72 65 66 73 2e 63 00 |..InitTo|Prefs.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 02 a5 00 | 00 01 ac ab 13 f7 19 ab |........|........|
|00000060| 13 f7 19 00 00 0a 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 35 8e 00 00 |........|....5...|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 63 6f 6d 6d 6f 6e |#include| "common|
|00000090| 2e 68 22 0d 0d 2f 2f 20 | 54 68 65 20 6e 65 77 20 |.h"..// |The new |
|000000a0| 6c 6f 63 6b 20 73 74 61 | 74 65 20 69 73 20 68 65 |lock sta|te is he|
|000000b0| 6c 64 20 69 6e 20 61 20 | 74 65 6d 70 20 76 61 72 |ld in a |temp var|
|000000c0| 69 61 62 6c 65 2c 20 69 | 6e 20 63 61 73 65 20 6e |iable, i|n case n|
|000000d0| 65 77 20 61 6e 64 20 6f | 6c 64 0d 2f 2f 20 68 61 |ew and o|ld.// ha|
|000000e0| 70 70 65 6e 20 74 6f 20 | 62 65 20 74 68 65 20 73 |ppen to |be the s|
|000000f0| 61 6d 65 20 70 6f 69 6e | 74 65 72 2e 20 4f 74 68 |ame poin|ter. Oth|
|00000100| 65 72 77 69 73 65 2c 20 | 74 68 65 20 6f 6c 64 2d |erwise, |the old-|
|00000110| 3e 4c 6f 63 6b 65 64 20 | 3d 20 2d 31 20 77 6f 75 |>Locked |= -1 wou|
|00000120| 6c 64 0d 2f 2f 20 74 72 | 61 73 68 20 74 68 65 20 |ld.// tr|ash the |
|00000130| 6e 65 77 20 76 61 6c 75 | 65 2e 0d 0d 2f 2f 20 6f |new valu|e...// o|
|00000140| 6c 64 20 69 73 20 61 73 | 73 75 6d 65 64 20 74 6f |ld is as|sumed to|
|00000150| 20 62 65 20 70 6f 69 6e | 74 65 64 20 74 6f 20 74 | be poin|ted to t|
|00000160| 68 65 20 76 61 72 73 20 | 63 75 72 72 65 6e 74 6c |he vars |currentl|
|00000170| 79 20 69 6e 20 75 73 65 | 2e 0d 0d 76 6f 69 64 20 |y in use|...void |
|00000180| 49 6e 69 74 54 6f 50 72 | 65 66 73 28 42 75 73 56 |InitToPr|efs(BusV|
|00000190| 61 72 73 20 2a 6e 65 77 | 2c 42 75 73 56 61 72 73 |ars *new|,BusVars|
|000001a0| 20 2a 6f 6c 64 29 20 7b | 0d 09 63 6f 6e 73 74 20 | *old) {|..const |
|000001b0| 6c 6f 6e 67 20 44 61 6e | 67 65 72 53 74 72 20 3d |long Dan|gerStr =|
|000001c0| 20 30 78 35 30 46 46 38 | 30 30 31 3b 0d 09 73 68 | 0x50FF8|001;..sh|
|000001d0| 6f 72 74 09 6e 65 77 4c | 6f 63 6b 20 3d 20 6e 65 |ort.newL|ock = ne|
|000001e0| 77 2d 3e 4c 6f 63 6b 65 | 64 3b 0d 09 09 0d 09 6f |w->Locke|d;.....o|
|000001f0| 6c 64 2d 3e 4c 6f 63 6b | 65 64 20 3d 20 4c 6f 63 |ld->Lock|ed = Loc|
|00000200| 6b 65 64 5f 73 74 6f 70 | 3b 09 09 09 2f 2f 20 6c |ked_stop|;...// l|
|00000210| 6f 63 6b 20 69 74 20 73 | 6f 20 77 65 20 63 61 6e |ock it s|o we can|
|00000220| 20 63 68 61 6e 67 65 20 | 74 68 69 6e 67 73 0d 09 | change |things..|
|00000230| 6f 6c 64 2d 3e 42 65 68 | 61 76 69 6f 72 20 3d 20 |old->Beh|avior = |
|00000240| 6e 65 77 2d 3e 42 65 68 | 61 76 69 6f 72 3b 09 09 |new->Beh|avior;..|
|00000250| 2f 2f 20 63 6f 70 79 20 | 6e 65 77 20 76 61 6c 75 |// copy |new valu|
|00000260| 65 73 0d 09 6f 6c 64 2d | 3e 44 6f 34 20 3d 20 6e |es..old-|>Do4 = n|
|00000270| 65 77 2d 3e 44 6f 34 3b | 0d 09 0d 09 2a 28 6c 6f |ew->Do4;|....*(lo|
|00000280| 6e 67 20 2a 29 28 30 29 | 20 3d 20 44 61 6e 67 65 |ng *)(0)| = Dange|
|00000290| 72 53 74 72 3b 09 09 09 | 2f 2f 20 69 6e 69 74 20 |rStr;...|// init |
|000002a0| 74 68 65 20 6d 61 67 69 | 63 20 76 61 6c 75 65 73 |the magi|c values|
|000002b0| 0d 09 69 66 20 28 20 6e | 65 77 2d 3e 44 6f 34 20 |..if ( n|ew->Do4 |
|000002c0| 3d 3d 20 44 6f 34 5f 79 | 65 70 20 29 0d 09 09 2a |== Do4_y|ep )...*|
|000002d0| 28 6c 6f 6e 67 20 2a 29 | 28 34 29 20 3d 20 44 61 |(long *)|(4) = Da|
|000002e0| 6e 67 65 72 53 74 72 3b | 0d 09 0d 09 6f 6c 64 2d |ngerStr;|....old-|
|000002f0| 3e 4c 6f 63 6b 65 64 20 | 3d 20 6e 65 77 4c 6f 63 |>Locked |= newLoc|
|00000300| 6b 3b 09 09 09 09 2f 2f | 20 66 72 65 65 20 74 68 |k;....//| free th|
|00000310| 65 20 76 62 6c 20 74 6f | 20 72 75 6e 20 61 67 61 |e vbl to| run aga|
|00000320| 69 6e 0d 09 7d 00 00 00 | 00 00 00 00 00 00 00 00 |in..}...|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000390| 2a 0b 64 20 20 20 20 53 | 45 54 20 43 53 79 73 4f |*.d S|ET CSysO|
|000003a0| 62 6a 65 63 74 73 20 22 | 60 51 55 4f 54 45 20 22 |bjects "|`QUOTE "|
|000003b0| 0d 49 6e 69 74 54 6f 50 | 72 65 66 73 2e 63 02 00 |.InitToP|refs.c..|
|000003c0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000003d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 ab 1e 2a 4e 00 00 | 00 00 00 00 01 ac 53 45 |....*N..|......SE|
|00000400| 54 20 50 53 79 73 4f 62 | 6a 65 63 74 73 20 22 60 |T PSysOb|jects "`|
|00000410| 51 55 4f 54 45 20 22 7b | 4c 69 62 72 61 72 69 65 |QUOTE "{|Librarie|
|00000420| 73 7d 52 75 6e 74 69 6d | 65 2e 6f 22 20 22 7b 4c |s}Runtim|e.o" "{L|
|00000430| 69 62 72 61 72 69 65 73 | 7d 49 6e 74 65 72 66 61 |ibraries|}Interfa|
|00000440| 63 65 2e 6f 22 20 22 7b | 50 4c 69 62 72 61 72 69 |ce.o" "{|PLibrari|
|00000450| 65 73 7d 50 61 73 4c 69 | 62 2e 6f 22 60 22 2a 0b |es}PasLi|b.o"`"*.|
|00000460| 03 45 4e 44 2a 0b 1b 45 | 63 68 6f 20 22 20 20 43 |.END*..E|cho " C|
|00000470| 6f 6d 70 69 6c 69 6e 67 | 3a 20 20 43 44 45 56 2e |ompiling|: CDEV.|
|00000480| 00 00 00 48 00 09 4d 69 | 73 68 61 77 61 6b 61 00 |...H..Mi|shawaka.|
|00000490| 00 a5 ab 70 00 e7 00 00 | 00 e7 00 09 00 e7 00 75 |...p....|.......u|
|000004a0| 00 e7 00 7c 00 00 00 06 | 00 04 00 de 01 3a 02 d2 |...|....|.....:..|
|000004b0| 03 6b 00 de 01 3a 02 d2 | 03 6b ab 13 b0 c9 00 00 |.k...:..|.k......|
|000004c0| 02 68 00 00 02 68 00 00 | 00 00 01 00 00 00 00 1e |.h...h..|........|
|000004d0| 00 de 01 3a 02 d2 03 6b | 00 de 01 3a 02 d2 03 6b |...:...k|...:...k|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 9a |.....n..|.n...>..|
|00000500| df a8 18 3e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |...>....|.>..MPSR|
|00000510| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 03 f0 ff ff 00 00 00 4c | 00 9d 3a c8 00 00 00 00 |.......L|..:.....|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+